package cn.peifu.hrm.feign;

import cn.peifu.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "system-server", fallbackFactory = SystemFeignFallbackFactory.class)
public interface SystemFeignClient {
    @RequestMapping(value = "/tenant/selectByLoginId/{loginId}",method = RequestMethod.GET)
    AjaxResult selectByLoginId(@PathVariable("loginId")Long loginId);
}